import request from "../uniHttp"

// 获取学校沙盘信息列表
export const sandInfoList = (data) => {
	return request({
		url: '/api/sczx/sand/sandInfo/list',
		data: data,
	})
}

export const sandInfoById = (data) => {
	return request({
		url: '/api/sczx/sand/sandInfo/list',
		data: data,
	})
}

export const sandWareBySandId = (data) => {
	return request({
		url: '/api/sczx/sand/sandWare/tree',
		data: data,
	})
}

export const getAliUrl = (data) => {
	return request({
		url: '/api/sczx/system/oss/sign',
		data
	})
}

export const upReport = (data) => {
	return request({
		url: '/api/sczx/sand/sandEvaHead/create',
		data
	})
}

// 获取班级年级树结构
export const classOrgTree = (data) => {
	return request({
		url: '/api/sczx/user/classOrg/tree',
		data: {}
	})
}

// 获取班级列表
export const stuList = (data) => {
	return request({
		url: '/api/sczx/user/stuInfo/list',
		data: data
	})
}

//获取沙具列表
export const sandWareList = (data) => {
	return request({
		url: '/api/sczx/sand/sandWare/page',
		data: data
	})
}

//根据id获取沙具详情
export const sandWareInfoById = (data) => {
	return request({
		url: '/api/sczx/sand/sandWare/detailById',
		data: data
	})
}
// 修改沙具api

export const sandWareEdit = (data) => {
	return request({
		url: '/api/sczx/sand/sandWare/edit',
		data: data
	})
}

// 获取报告列表
export const sandEvaHeadList = (data) => {
	return request({
		url: '/api/sczx/sand/sandEvaHead/page',
		data: data
	})
}

// 根据id获取报告
export const sandReportById = (data) => {
	return request({
		url: '/api/sczx/sand/sandEvaHead/detailById',
		data: data
	})
}

// 根据id获取报告图片
export const sandReportImageById = (data) => {
	return request({
		url: '/api/sczx/system/sysFileRel/list',
		data: data
	})
}